//
//  UserObject.m
//  HappyPenguin
//
//  Created by zhuangyihang on 2/1/16.
//  Copyright © 2016 zhuangyihang. All rights reserved.
//

#import "UserObject.h"

@implementation UserObject

+ (NSDictionary *)JSONKeyPathsByPropertyKey{
    return @{
             @"addr":@"ADDR",
             @"brand":@"BRAND",
             @"bsid":@"BSID",
             @"ip":@"C_IP",
             @"picIp":@"C_PICSERVERURL",
             @"port":@"C_PORT",
             @"portrait":@"IMAGE",
             @"mustUpdate":@"MUSTUPDATE",
             @"newVersion":@"NEWVERSION",
             @"nickname":@"NICKNAME",
             @"position":@"POSITION",
             @"shopname":@"SHOPNAME",
             @"signature":@"SIGNATURE",
             @"smessage":@"SMSSIGN",
             @"token":@"TOKENID",
             @"trade":@"TRADE",
             @"updateUrl":@"UPDATEURL",
             };
}

- (BOOL)hasSignIn{
    return self.bsid>0 && self.token.length>0;
}

@end
